//放置项目的配置信息
console.log("获取环境变量:", import.meta.env)
// const BASE_URL = import.meta.env.VITE_BASE_URL
const BASE_URL =  "http://localhost:8081/api"
export const API_CONFIG={
    // loginApi: "https://mock.mengxuegu.com/mock/66558a4bb462b81cb39169e0/vue/auth/login",
    loginApi: `${BASE_URL}/auth/login`,
    deleteUserApi: `${BASE_URL}/user/delete`,
    getUserListApi: `${BASE_URL}/user/list`,
    addUserApi: `${BASE_URL}/user/add`,
    updateUserApi: `${BASE_URL}/user/update`,
    logoutApi: `${BASE_URL}/auth/logout`,
    // 定义集群资源操作的接口
    getClusterListApi: `${BASE_URL}/cluster/list`,
    addClusterApi: `${BASE_URL}/cluster/add`,
    deleteClusterApi: `${BASE_URL}/cluster/delete`,
    getDetailApi: `${BASE_URL}/cluster/get`,
    getClusterApi: `${BASE_URL}/cluster/get`,
    updateClusterApi: `${BASE_URL}/cluster/update`,

    // 节点接口
    getNodeListApi: `${BASE_URL}/node/list`,
    updateNodeApi: `${BASE_URL}/node/update`,
    
    // namespace接口
    getNamespaceListApi: `${BASE_URL}/namespace/list`,
    createNamespaceApi: `${BASE_URL}/namespace/create`,
    deleteNamespaceApi: `${BASE_URL}/namespace/delete`,
    updateNamespaceApi: `${BASE_URL}/namespace/update`,

    // pod接口
    getPodListApi: `${BASE_URL}/pod/list`,
    deletePodApi: `${BASE_URL}/pod/delete`,
    getPodApi: `${BASE_URL}/pod/get`,
}
export const CONFIG={
    // TOKEN_NAME: "Authorization"
    TOKEN_NAME: "Authorization"
}
